package com.netty.rpc.monitor.warm;

import com.google.common.eventbus.Subscribe;

public abstract class AbstractEventHandler {


    public AbstractEventHandler() {
        EventControllerFactory.getAsyncController().register(this);
    }

    @Subscribe
    public void listen(Event event) {
        onEvent(event);
    }

    public abstract void onEvent(Event event);
}
